#include <iostream>
#include "udp_socket.h"

using namespace std;

int main()
{
	UdpClient* uc = new UdpClient("192.168.0.116",1234);
	while(true)
	{
		char buf[1024] = {};
		cin >> buf;
		uc->send(buf);
		uc->recv(buf,sizeof(buf));
		cout << buf << endl;
	}
}
